import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Login from '../components/Login'
import * as LoginActions from '../actions/login'

console.log('RegContainers',LoginActions);

function mapStateToProps(state) {
  return {
     reg: state.login
  }
}
function mapDispatchToProps(dispatch) {
  return bindActionCreators(LoginActions, dispatch)
}

export default connect(mapStateToProps, mapDispatchToProps)(Login)
